/**
 * 兼容性封装
 * 浏览器视口的宽度
 * @returns {number}
 */
export default function getWindowWidth(){
    var windowWidth = 0;
    if(document.compatMode == "CSS1Compat"){
        windowWidth = document.documentElement.clientWidth;
    }else{
        windowWidth = document.body.clientWidth;
    }
    return windowWidth;
}